package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.model.hosp.HospitalSet;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface HospitalRepository extends MongoRepository<Hospital,String> {
    //根据hoscode查询医院对象
    Hospital getHospitalByHoscode(String hoscode);

    Hospital getHospitalById(String id);

    List<Hospital> findByHosnameLike(String hosname);
}
